package com.shadow.cloud.provider;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ProviderController {

    @Value("${spring.application.name}")
    private String name;
    @Value("${server.port}")
    private String port;

    @GetMapping("name")
    public String name() {
        return "I'm " + name + ":" + port;
    }
}
